package api.finance;

import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

public class RoseLoggDataApi {
    private static final String batch_url= Url.Base_Url+"consumer/actualReceive/insertList";
    public ResponseData rose_batch(Object collectionBillId, String currency, String receive, String paymentDate, String ifInvoice,
                                   String collectionAccount, Object exchangeRate) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("collectionBillId",collectionBillId);
        data.put("currency",currency);
        data.put("receive",receive);
        data.put("paymentDate",paymentDate);
        data.put("ifInvoice",ifInvoice);
        data.put("collectionAccount",collectionAccount);
        data.put("exchangeRate",exchangeRate);
        return HttpClientUtils.post_json(batch_url,data);
    }
}
